#coding=utf-8
"""
Author:陆孝
Time:2025/9/4 0004 14:56
"""

from utils.handle_conf import conf
from utils.handle_requests import Send_Requests

class Cms_Login():
    def login(self):
        request = Send_Requests()
        url = conf.get_value('env','url') + '/cms/manage/loginJump.do'
        data = {"userAccount":conf.get_value("test_data",'username'),
                "loginPwd":conf.get_value("test_data",'pwd')}
        headers = conf.get_value('env','headers')
        response = request.send(method='post',url=url,data=data,headers=headers)
        return request
        # print(response.json())